error handling functions in files in c